package cn.edu.yzu.scholarship.render;

import java.io.IOException;

import javax.servlet.ServletException;

import net.sf.jasperreports.j2ee.servlets.Xml4SwfServlet;

import com.jfinal.render.Render;

public class JRFlashRender extends Render {

	private static final long serialVersionUID = 740774243230017112L;

	@Override
	public void render() {
		Xml4SwfServlet servlet = new Xml4SwfServlet();
		try {
			servlet.service(request, response);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ServletException e) {
			e.printStackTrace();
		}
	}

}
